home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6057 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nntp.uio.no!solace!news
  2. From: cmh@lls.se (Magnus Holmgren)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bored? Tell me why my code crashes! :)
  5. Date: 23 Mar 1996 13:23:21
  6. Organization: Programmers' Point
  7. Message-ID: <4j1fdn$iev@fizban.solace.mh.se>
  8. References: <4it591$aov@vixen.cso.uiuc.edu>
  9. NNTP-Posting-Host: gawain.lls.se
  10. Mime-Version: 1.2
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8BIT
  13. X-FTN-To: Unknown
  14. X-Newsreader: Spot 1.3a #26/NetGate 1.2
  15.  
  16. In a message of 22 Mar 96, Unknown wrote to :
  17.  
  18.  U>    It works, sometimes, but just crashes others. As nearly as I can
  19.  U> tell, it's the pettern matching stuff .... everything else seems to
  20.  U> work if I remove these bits. If I pass no wildcards, in fact, the
  21.  U> thing works fine, although the output is rather dull.
  22.  
  23. You muse make sure that your pattern destination buffer is twice as large
  24. as your input string, plus 2 bytes. As I don't know what kind of inputs you
  25. are using, this could be an explanation...
  26.  
  27. Thus, always make the ParsePatternNoCase destination strlen( pattern )*2+2
  28. bytes large.
  29.  
  30. --
  31. Magnus Holmgren - Amiga programmer and enthusiast
  32.  
  33.  
  34.